<%@ taglib uri="/tld/extremecomponents" prefix="ec" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

	<script src = "../js/jquery-1.12.1.js" type = "text/javascript"></script>
	<script src = "../js/common.js" type = "text/javascript"></script>
	<script src = "../js/highcharts.js"></script>
	<script src = "../js/highcharts-3d.js"></script>
	
	<link href="<%=request.getContextPath() %>/css/extremecomponents.css" rel="stylesheet" type="text/css" />
	<link href="<%=request.getContextPath() %>/css/global.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/H-ui.min.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/H-ui.admin.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/iconfont.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/skin.css" id="skin" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />

<title>作业完成情况整体分析</title>
</head>
<script type="text/javascript">

	//作业框回显
	$(function() {
	$("select[name='jobId']")
	.val(
	'<c:out value="${CONDITIONMAP.jobId}" />');
	});

	$(function() {
	$("#lookfor").click(
        function() {
            formPost(window.SearchState, '','studenteffort?ActionType=student_Is_Effort_Overall', this);
        });
	});

    function line(e) {
    	 if( $(".container").hasClass("show") ){
             // 执行隐藏
             alert("111");
             $(".container").hide().removeClass("show");
             // 其他
             
         }else{
             // 显示
              alert("222");
             $(".container").show().addClass("show");
             $('.container')
             .highcharts(
                     {
                         labels : {
                             style : {
                                 color : "#ff0000"
                             },
                             items : [
                                     {
                                         style : {
                                             left : '50px',
                                             top : '100px'
                                         }
                                     },
                                     {
                                         style : {
                                             left : '50px',
                                             top : '200px',
                                             color : '#006cee',
                                             fontSize : '20px',
                                             fontWeight : 'bold',
                                             fontFamily : '微软雅黑'
                                         }
                                     } ]
                         },
                         xAxis : {
                             categories : [ 'topic1', 'topic2', 'topic3', 'topic4' ]
                         },
                         series : [ {
                             data : [1,2,2,0]
                         } ]
                     });
         }
       
    }
</script>
<body>
<div id="current">当前位置：学生努力程度分析 &gt; 整体分析</div>
<div class="page-container">
    <form id="SearchState" method="post">
	<div class="text-c"> 
		作业:
		<span class="select-box inline">
			<select class="select"  name="jobId" id="jobId">
				<option value="" selected="selected">本次作业</option>
				<c:forEach items="${ALLJOB }"  var="everyJob">
				<option value="${everyJob.job_id }">${everyJob.job_id }</option>
				</c:forEach>
			</select>
		</span>
		姓名:
		<span class="select-box inline">
			 <input name="studentName"  id="studentName"    type="text" size="16"
			  value="<c:out value='${CONDITIONMAP.studentName}' />" />
		</span>
		<input type="hidden" id="" name="">
		<button id="lookfor" type="button" class="btn btn-primary radius">查询</button>
	</div>
	</form>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<!-- <th width="25"><input type="checkbox" name="" value=""></th> -->
					<th width="105">学生学号</th>
					<th width="105">学生姓名</th>
					<!-- <th width="105">本次作业提交次数和</th> -->
					<th width="105">努力程度</th>
				</tr>
			</thead>
			<tbody>
					 <c:forEach items="${STUDENTISEFFORT}"  var="currentJob">
					 <tr class="text-c">
	                               <td>${currentJob.student_id}</td>
	                               <td>${currentJob.student_name}</td>
	                                 <%-- <td>${currentJob.total_value}</td> --%>
	                               <td>
	                               			<c:if test="${(currentJob.total_value/(TOPICAMOUNT[0].topic_amount*6)) <0.6}">一般</c:if>
	                               			<c:if test="${((currentJob.total_value/(TOPICAMOUNT[0].topic_amount*6)>0.6) || (currentJob.total_value/(TOPICAMOUNT[0].topic_amount*6)==0.6)) && currentJob.total_value/(TOPICAMOUNT[0].topic_amount*6)<0.8}">努力</c:if>
	                               			<c:if test="${currentJob.total_value/(TOPICAMOUNT[0].topic_amount*6)>0.8 || currentJob.total_value/(TOPICAMOUNT[0].topic_amount*6)==0.8}">刻苦</c:if>
	                               </td>
	                   </tr>
	                  </c:forEach>
			</tbody>
		</table>
	</div>
	<div id="container" class="container" style="display:none;height:250px;margin-left:auto;margin-right:auto;margin-top:10px;"></div>
	
</div>
</body>
</html>